import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import About from '@/views/About.vue'
import None from '@/views/info404.vue'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: Home
  },
  {
    path: '/about',
    name: 'about',
    component: About,
    // component: () => import('@/views/About.vue')
  },
  {
    path: '*',
    name: '404',
    component: None
  }
]
export default routes
